package com.lantosec.hmrp.modules.sysdata.vo;

import java.util.Date;

import com.lantosec.hmrp.modules.sysdata.entity.SysProcessHasten;
import com.lantosec.hmrp.core.mvc.BaseVO;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * <p>
 * 流程催办表 VO对象
 * </p>
 *
 * @author AutoCode
 * @since 2020-07-27
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@ApiModel(value="SysProcessHasten对象", description="流程催办表")
public class SysProcessHastenVO extends BaseVO<SysProcessHasten> {
    private static final long serialVersionUID = 1L;


    public SysProcessHastenVO(SysProcessHasten entity){
        this.id = entity.getId();
        this.proInsId = entity.getProInsId();
        this.taskId = entity.getTaskId();
        this.hastenUserId = entity.getHastenUserId();
        this.userId = entity.getUserId();
        this.hastenTime = entity.getHastenTime();
        this.smsNotice = entity.getSmsNotice();
        this.createTime = entity.getCreateTime();
    }

    @Override
    public SysProcessHasten convertToEntity(){
        return new SysProcessHasten(this);
    }


    @ApiModelProperty(value = "Id")
    private String id;

    @ApiModelProperty(value = "流程实例Id")
    private String proInsId;

    @ApiModelProperty(value = "任务Id")
    private String taskId;

    @ApiModelProperty(value = "催办用户Id")
    private String hastenUserId;

    @ApiModelProperty(value = "操作用户Id")
    private String userId;

    @ApiModelProperty(value = "催办时间")
    private Date hastenTime;

    @ApiModelProperty(value = "是否短信通知（0 否，1 是）")
    private Integer smsNotice;

    @ApiModelProperty(value = "创建时间")
    private Date createTime;


    @ApiModelProperty(value = "任务名称")
    private String taskName;

    @ApiModelProperty(value = "流程名称")
    private String proInsName;

    @ApiModelProperty(value = "手机号码")
    private String phone;

    @ApiModelProperty(value = "催办用户名")
    private String name;
}
